<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/jsp/taglib.jsp" %>
<%@page import="com.biz.model.Singleton.ZkNode" %>
<%@ page import="com.framework.utils.ConfigUtil" %>
<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>信息编辑窗体</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link href="${ctxStatic}/plugins/h+/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/animate.min.css" rel="stylesheet">
    <%--<link href="${ctxStatic}/plugins/h+/css/style.min862f.css?v=4.1.0" rel="stylesheet">--%>
    <link rel="stylesheet" type="text/css" href="${ctxStatic}/plugins/h+/css/plugins/webuploader/webuploader.css">
    <link href="${ctxStatic}/plugins/h+/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">

    <link href="${ctxStatic}/plugins/h+/css/font-awesome.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/cropper/cropper.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/jasny/jasny-bootstrap.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/nouslider/jquery.nouislider.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/ionRangeSlider/ion.rangeSlider.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"
          rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/plugins/clockpicker/clockpicker.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/animate.min.css" rel="stylesheet">
    <link href="${ctxStatic}/plugins/h+/css/style.min.css?v=4.0.0" rel="stylesheet">
    <base target="_blank">

    <style>
        .dtupload > img {
            width: 54px;
            padding-left: 39px;
            padding-top: 16px;
        }

        .dtupload > a {
            color: #268eff;
            font-size: 12px;
            position: relative;
            left: 26px;
            top: 10px;
        }

        .dtupload > a:hover,
        .shoplogo > a:hover {
            color: #F93;
        }

        .upload_pic {
            height: 70px;
            width: 70px;
            position: relative;
            cursor: pointer;
            color: #ccbe9e;
            background: #fff;
            overflow: hidden;
            display: inline-block;
            *display: inline;
            *zoom: 1;
        }

        .upload_pic input {
            position: absolute;
            height: 100%;
            width: 100%;
            right: 0;
            top: 0;
            opacity: 0;
            filter: alpha(opacity=0);
            cursor: pointer
        }

        .upload_pic:hover {
            color: #ccbe9e;
            background: #fff;
            text-decoration: none
        }

        .posabs {
            position: absolute;
            right: 23px;
            top: 9px;
        }

        .chosen-container {
            width: 100% !important;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="panel-options">
        <ul class="nav nav-tabs">
            <li class="active"><a data-toggle="tab" href="tabs_panels.html#tab-0"><i class="fa fa-laptop">基本信息</i></a>

            </li>
            <li class=""><a data-toggle="tab" href="tabs_panels.html#tab-1"><i class="fa fa-desktop">支付配置</i></a>
            </li>

        </ul>
    </div>

    <div class="panel-body">
        <form class="form-horizontal" onsubmit="return  false" id="form_brand">
            <input type="hidden" id="pbrand_brand_code" name="pbrand.brandCode">
            <input type="hidden" name="pbrand.roleCode" value="3">

            <div class="tab-content">
                <div id="tab-0" class="tab-pane active">
                    <div class="ibox-content">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">商户LOGO：</label>

                            <div class="col-sm-4">
                                <!--上传logo-->
                                <div class="dtupload">
                                    <a href="javascript:" class="upload_pic" style="height:80px;"><input type="file"
                                                                                                         name="fileToUpload"
                                                                                                         id="fileToUpload1"
                                                                                                         onChange="uploadFile('fileToUpload1','imgUpdate','shopPicId');">
                                        <img id="imgUpdate" src="${OSSURL}/common/plus_72.png" width="100%"/>
                                        <input type="hidden" id="shopPicId" name="pbrand.logoUrl">
                                    </a>
                                </div>
                            </div>

                            <label class="col-sm-2 control-label">体验店：</label>

                            <div class="col-sm-2">
                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" class="onoffswitch-checkbox" id="pbrand_is_90"
                                               name="pbrand.is90">
                                        <label class="onoffswitch-label" for="pbrand_is_90">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">商户名称：</label>

                            <div class="col-sm-9">
                                <input type="text" placeholder="用户名" class="form-control" id="pbrand_name"
                                       name="pbrand.name">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">所属行业：</label>

                            <div class="col-sm-4">
                                <select id="pbrand_category_first" name="pbrand.categoryFirst"
                                        data-placeholder="选择行业..." class="chosen-select" style="width:100%"
                                        tabindex="1">

                                </select>
                            </div>
                            <div class="col-sm-4">
                                <select id="pbrand_category_second" name="pbrand.categorySecond"
                                        data-placeholder="选择子行业..." class="chosen-select" style="width:100%"
                                        tabindex="1">
                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">快速分类：</label>

                            <div class=" col-sm-9">
                                <select data-placeholder="请选择..." id="pbrand_speed_code" name="pbrand.speedCode"
                                        class="chosen-select" style="width:100%" tabindex="0">

                                </select>
                            </div>
                        </div>

                        <div class="form-group" id="dlzh">
                            <label class="col-sm-3 control-label">登录账号：</label>

                            <div class="col-sm-9">
                                <input type="text" id="pbrand_loginName" name="pbrand.loginName" placeholder="请输入登录账号"
                                       class="form-control">
                            </div>
                        </div>

                        <div class="form-group" id="dlmm">
                            <label class="col-sm-3 control-label">登录密码：</label>

                            <div class=" col-sm-9">
                                <input type="password" id="pbrand_pwd" name="pbrand.pwd" placeholder="请输入登录密码"
                                       class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">所属省市：</label>

                            <div class="col-sm-4">
                                <select id="pbrand_pro" name="pbrand.province" data-placeholder="选择省份..."
                                        class="chosen-select" style="width:100%" tabindex="2">

                                </select>
                            </div>
                            <div class="col-sm-4">
                                <select id="pbrand_city" name="pbrand.city" data-placeholder="选择城市..."
                                        class="chosen-select" style="width:100%" tabindex="2">

                                </select>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系方式：</label>

                            <div class=" col-sm-9">
                                <input type="number" id="pbrand_telephone" name="pbrand.telephone" placeholder="请输入手机号码"
                                       class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">详细地址：</label>

                            <div class=" col-sm-9">
                                <input type="text" id="pbrand_address" name="pbrand.address" placeholder="请输入详细地址"
                                       class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">内容：</label>

                            <div class=" col-sm-9">
                                <!-- 加载编辑器的容器 -->
                                <script id="container" name="content" style="height:300px" type="text/plain"></script>
                                <input id="pbrand_introduction" name="pbrand.introduction" type="hidden">
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button class="btn btn-primary" onclick="doSubmit();">提交</button>
                                <button id="btn_close1" class="btn btn-primary" type="button">关闭</button>
                            </div>
                        </div>
                    </div>

                </div>

                <div id="tab-1" class="tab-pane">
                    <div class="ibox-content">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">店小翼品牌code:</label>

                            <div class=" col-sm-9">
                                <input type="text" id="pbrand_dxy_code" name="pbrand.dxyCode" placeholder="请输入品牌code"
                                       class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">久零券余额(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_balance_90" name="pbrand.balance90"
                                       placeholder="" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">久零券透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" placeholder="" id="pbrand_credit_total_90"
                                       name="pbrand.creditTotal90" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">久零券当前透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_credit_now_90" name="pbrand.creditNow90"
                                       placeholder="" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">零购券余额(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_balance_90_shop" name="pbrand.balance90_shop"
                                       placeholder="" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">零购券透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" placeholder="" id="pbrand_credit_total_90_shop"
                                       name="pbrand.creditTotal90_shop" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">零购券当前透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_credit_now_90_shop" name="pbrand.creditNow90_shop"
                                       placeholder="" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">体验券余额(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_balance_90_experience" name="pbrand.balance90_experience"
                                       placeholder="" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">体验券透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" placeholder="" id="pbrand_credit_total_90_experience"
                                       name="pbrand.creditTotal90_experience" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">体验券当前透支额度(分):</label>

                            <div class=" col-sm-9">
                                <input type="number" value="0" id="pbrand_credit_now_90_experience" name="pbrand.creditNow90_experience"
                                       placeholder="" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">久零佣金百分点:</label>

                            <div class=" col-sm-9">
                                <input type="text" value="0.0" onblur="checkNumber(this)" id="pbrand_commission"
                                       name="pbrand.commission" placeholder="" class="form-control">
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-3 control-label">兴业银行手续费百分点:</label>

                            <div class=" col-sm-9">
                                <input type="text" value="0.0" onblur="checkNumber(this)" id="pbrand_procedures"
                                       name="pbrand.procedures" placeholder="" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发券比例:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_proportion" name="pbrand.proportion" data-placeholder="选择发券比例..."
                                        class="chosen-select" style="width:100%" tabindex="1">

                                </select>
                                注：已2:1为例：100元 实际发券为50久零券
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">久零券有效期:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_expiryDateType" name="pbrand.expiryDateType"
                                        data-placeholder="选择久零券有效期..." class="chosen-select" style="width:100%"
                                        tabindex="1">

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">0购券有效期:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_zeroGoDateType" name="pbrand.zeroGoDateType"
                                        data-placeholder="选择0购券有效期..." class="chosen-select" style="width:100%"
                                        tabindex="1">

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">体验券有效期:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_experienceDateType" name="pbrand.experienceDateType"
                                        data-placeholder="选择体验券有效期..." class="chosen-select" style="width:100%"
                                        tabindex="1">

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发券优先级:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_sorts" name="pbrand.sorts" data-placeholder="选择发券优先级..."
                                        class="chosen-select" style="width:100%" tabindex="1">
                                    <%--<option value="99">最低</option>--%>
                                    <option value="10">10(最低)</option>
                                    <option value="9">9</option>
                                    <option value="8">8</option>
                                    <option value="7">7</option>
                                    <option value="6">6</option>
                                    <option value="5">5</option>
                                    <option value="4">4</option>
                                    <option value="3">3</option>
                                    <option value="2">2</option>
                                    <option value="1">1(最高)</option>
                                </select>
                            </div>
                        </div>

                        <%--<div class="form-group" id="ticketType">--%>
                        <%--<label class="col-sm-3 control-label">发券类型:</label>--%>

                        <%--<div class=" col-sm-9" >--%>
                        <%--<select id="pbrand_type" name="pbrand.ticketType" data-placeholder="选择发券类型..."--%>
                        <%--class="chosen-select" style="width:100%" tabindex="1">--%>
                        <%--&lt;%&ndash;<option value="99">最低</option>&ndash;%&gt;--%>
                        <%--<option value="" selected>请选择</option>--%>
                        <%--<option value="0">久零券</option>--%>
                        <%--<option value="1">购物券</option>--%>
                        <%--</select>--%>
                        <%--</div>--%>
                        <%--</div>--%>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">业务代表:</label>

                            <div class=" col-sm-9">
                                <select id="pbrand_biz_code" name="pbrand.bizCode" data-placeholder="选择业务代表..."
                                        class="chosen-select" style="width:100%" tabindex="1">

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否发券:</label>

                            <div class=" col-sm-9">
                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" class="onoffswitch-checkbox" id="pbrand_isTicket"
                                               name="pbrand.isTicket">
                                        <label class="onoffswitch-label" for="pbrand_isTicket">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" style="display: none;">
                        <label class="col-sm-3 control-label">是否发贝:</label>

                        <div class=" col-sm-9">
                        <div class="switch">
                        <div class="onoffswitch">
                        <input type="checkbox" class="onoffswitch-checkbox" id="pbrand_is_coin"
                        name="pbrand.iscoin">
                        <label class="onoffswitch-label" for="pbrand_is_coin">
                        <span class="onoffswitch-inner"></span>
                        <span class="onoffswitch-switch"></span>
                        </label>
                        </div>
                        </div>
                        </div>
                        </div>

                        <%--<div class="form-group">--%>
                        <%--<label class="col-sm-3 control-label">是否分期发券:</label>--%>

                        <%--<div class=" col-sm-9">--%>
                        <%--<div class="switch">--%>
                        <%--<div class="onoffswitch">--%>
                        <%--<input type="hidden" name="pbrand.isPeriodization" value="0"--%>
                        <%--id="periodization_hide">--%>
                        <%--<input type="checkbox" class="onoffswitch-checkbox"--%>
                        <%--onClick="showOrhideOpetion();" id="pbrand_is_periodization">--%>
                        <%--<label class="onoffswitch-label" for="pbrand_is_periodization">--%>
                        <%--<span class="onoffswitch-inner"></span>--%>
                        <%--<span class="onoffswitch-switch"></span>--%>
                        <%--</label>--%>
                        <%--</div>--%>
                        <%--</div>--%>
                        <%--</div>--%>
                        <%--</div>--%>

                        <div class="form-group" id="period" style="display:none;">
                            <label class="col-sm-3 control-label">分期设置:</label>

                            <div class=" col-sm-9">
                                <input type="required digits" id="period_cycleDays" name="cycleDays"
                                       placeholder="请输入发券周期" class="form-control"><span class="posabs">天</span>
                                <table class="table table-bordered" id="period_table">
                                    <thead>
                                    <tr>
                                        <th>期数</th>
                                        <th>发券比例(%)</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>4</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>5</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>6</td>
                                        <td><input type="number" name="scale"
                                                   onkeyup="if( !/^[1-9][0-9]$|^[0-9]$|^0$$/.test(this.value)){alert('请输入0-100的整数');this.value='';}">
                                        </td>
                                        <td>
                                            <a id="addRow" class="edit ml10" href="javascript:addRow();" title="新增一行"
                                               style="display:none;">
                                                <i class="glyphicon glyphicon-plus"></i>
                                            </a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>

                        <input type="hidden" value="0.0" onblur="checkNumber(this)" id="pbrand_coinproportion"
                               name="pbrand.coinproportion" placeholder="" class="form-control">

                        <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-8">
                                <button class="btn btn-primary" onclick="doSubmit();">提交</button>
                                <button id="btn_close" class="btn btn-primary" type="button">关闭</button>
                            </div>
                        </div>

                    </div>

                </div>


            </div>
        </form>

    </div>
</div>

</body>
<script src="${ctxStatic}/plugins/h+/js/jquery.min.js?v=2.1.4"></script>

<!-- 配置文件 -->
<script type="text/javascript"
        src="${pageContext.request.contextPath}/resources/plugins/utf8-jsp/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript"
        src="${pageContext.request.contextPath}/resources/plugins/utf8-jsp/ueditor.all.js"></script>
<script src="${ctxStatic}/plugins/h+/js/content.min.js?v=1.0.0"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/validate/jquery.validate.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/validate/messages_zh.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/demo/form-validate-demo.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/layer2.4/layer.js"></script>

<script src="${ctxStatic}/plugins/h+/js/bootstrap.min.js?v=3.3.5"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/chosen/chosen.jquery.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/jsKnob/jquery.knob.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/jasny/jasny-bootstrap.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/nouslider/jquery.nouislider.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/switchery/switchery.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/ionRangeSlider/ion.rangeSlider.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/iCheck/icheck.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/clockpicker/clockpicker.js"></script>
<script src="${ctxStatic}/plugins/h+/js/plugins/cropper/cropper.min.js"></script>
<script src="${ctxStatic}/plugins/h+/js/demo/form-advanced-demo.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/plugins/ajaxfileupload.js"></script>

<script src="${pageContext.request.contextPath}/resources/plugins/ueditor1_4_2-utf8-jsp/ueditor.config.js"></script>
<script src="${pageContext.request.contextPath}/resources/plugins/ueditor1_4_2-utf8-jsp/ueditor.all.min.js"></script>
<script src="${pageContext.request.contextPath}/resources/plugins/ueditor1_4_2-utf8-jsp/lang/zh-cn/zh-cn.js"></script>


<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<script type="text/javascript">
    var ue = UE.getEditor('container');
    <!-- 自定义上传图片-->
    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
    UE.Editor.prototype.getActionUrl = function (action) {
        if (action == 'uploadimage' || action == 'uploadfile') {
            return '${ctx}/ue/uploadImageForUE.ac';
        } else {
            return this._bkGetActionUrl.call(this, action);
        }
    };
    var picPath = '<%=ConfigUtil.get("OSSURL")%>';
    var id = '${id}';
    var cityId='<%=ZkNode.getIstance().getJsonConfig().get("localProv")+""%>';
    //对编辑器的操作最好在编辑器ready之后再做
    ue.ready(function () {
        //设置编辑器的内容
        ue.setContent('');
        //获取html内容，返回: <p>hello</p>
        var html = ue.getContent();
        //获取纯文本内容，返回: hello
        var txt = ue.getContentTxt();
        if(cityId=='20'){
            $("#ticketType").show();

        }else{
            $("#pbrand_type").val('0');
            $("#pbrand_type").trigger("chosen:updated");
            $("#ticketType").hide();
        }
        if (!isNullOrEmpty(id))//如果是编辑，读取数据
        {
            loadForEdit(id);
        }


    });
    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引

    loadFFBL();
    showIndustry('');
    pbrand_pro();
    loadBizPerson();
    loadspeed();
    pbrand_city('');
    showMerchant();


    /*$(function () {

     });*/

    $("#form_brand").validate();
    initPeriod();

    //行业二级联动
    $("#pbrand_category_first").chosen().change(function () {
        //alert(this.text);
        //showIndustry(this.value);
        loadCateGoryFirstChange(this.value);
    });
    //地区联动
    $("#pbrand_pro").chosen().change(function () {
        //alert(this.text);
        //showIndustry(this.value);
        pbrand_city(this.value);
    });

    //关闭iframe
    $('#btn_close').click(function () {
        parent.layer.close(index);
    });
    //关闭iframe
    $('#btn_close1').click(function () {
        parent.layer.close(index);
    });





    function showIndustry(id) {
        var url = "${ctx}/merchant/showIndustry.ac";
        $.ajax({
            url: url,
            data: {
                pid: id
            },
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_category_first").chosen("destroy");
                $("<option value=''>请选择</option>").appendTo("#pbrand_category_first");
                $(data).each(function (index, value) {
                    $("<option value='" + value.category_code + "'>" + value.category_name + "</option>").appendTo("#pbrand_category_first");
                });
                $("#pbrand_category_first").chosen({
                    no_results_text: "未找到此选项!",
                    width: "100%"
                });
                if ('${cf}' != null && '${cf}' != undefined && '${cf}' != '') {
                    $("#pbrand_category_first").val('${cf}');
                    $("#pbrand_category_first").trigger("chosen:updated");
                    loadCateGoryFirstChange('${cf}');
                }else{
                    $("#pbrand_category_first").val('1447747355063431');
                    $("#pbrand_category_first").trigger("chosen:updated");
                    loadCateGoryFirstChange('1447747355063431');
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }


    //根据代理商id加载代理商
    function showMerchant() {
        var url = '${pageContext.request.contextPath}/merchant/getMerchantById.ac';
        var ids = '${param.id}';
        $.ajax({
            url: url,// 跳转到 action
            data: {
                ids: ids
            },
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                if (data.success) {
                    // swal("删除成功！", "您已经删除了这条信息。", "success");
                    //当前表格刷新
                    $table.bootstrapTable('refresh');
                } else {
                    // swal("删除失败！", "未能删除这些信息。", "error");
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }

    //加载省市信息
    function pbrand_city(pid) {
        var url = "${ctx}/area/showAreaByPid.ac";
        $.ajax({
            url: url,
            data: {
                pid: pid,
                lev: 2
            },
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_city").chosen("destroy");
                $("#pbrand_city").html("");
                $("<option value=''>请选择</option>").appendTo("#pbrand_city");
                $(data).each(function (index, value) {
                    $("<option value='" + value.id + "'>" + value.text + "</option>").appendTo("#pbrand_city");
                });
                $("#pbrand_city").chosen({
                    no_results_text: "未找到此选项!",
                    width: "100%"
                });
                if ('${cityId}' != null && '${cityId}' != undefined && '${cityId}' != '') {
                    $("#pbrand_city").val('${cityId}');
                    $("#pbrand_city").trigger("chosen:updated");
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }

    //初始化分配table行号
    function initPeriod() {
        $("#period_table tbody").find("tr").each(function () {
            var row_num = $(this).prevAll().length + 1;//行号
            $(this).children("td:first").html(row_num);
        });
    }


    function loadCateGoryFirstChange(id) {
        var url = "${ctx}/merchant/showIndustry.ac";
        $.ajax({
            url: url,
            data: {
                pid: id
            },
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_category_second").chosen("destroy");
                var html = '<option value="">请选择</option>';
                $(data).each(function (index, value) {
                    html += '<option value="' + value.category_code + '">' + value.category_name + '</option>';
                    // $("<option value='"+value.category_code+"'>"+value.category_name+"</option>").appendTo("#pbrand_category_second");
                });
                $("#pbrand_category_second").html(html);
                $("#pbrand_category_second").chosen({
                    no_results_text: "未找到此选项!",
                    width: "100%"
                });
                if ('${cs}' != null && '${cs}' != undefined && '${cs}' != '') {
                    $("#pbrand_category_second").val('${cs}');
                    $("#pbrand_category_second").trigger("chosen:updated");
                }else{
                    $("#pbrand_category_second").val('1447747792306455');
                    $("#pbrand_category_second").trigger("chosen:updated");
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }


    //加载行业数据
    function loadspeed() {

        var url = "${ctx}/merchant/showBrandSpeed.ac";
        $.ajax({
            url: url,
            data: {},
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_speed_code").chosen("destroy");
                $("<option value=''>请选择</option>").appendTo("#pbrand_speed_code");
                $(data).each(function (index, value) {
                    $("<option value='" + value.speed_code + "'>" + value.speed_name + "</option>").appendTo("#pbrand_speed_code");
                });
                $("#pbrand_speed_code").chosen({
                    no_results_text: "未找到此选项!",
                    width: "100%"
                });
                if ('${speedId}' != null && '${speedId}' != undefined && '${speedId}' != '') {
                    $("#pbrand_speed_code").val('${speedId}');
                    $("#pbrand_speed_code").trigger("chosen:updated");
                }else{
                    $("#pbrand_speed_code").val('1478523097202518');
                    $("#pbrand_speed_code").trigger("chosen:updated");
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }

    //加载省市信息
    function pbrand_pro() {
        var cproId = '';
        <%--if (isNullOrEmpty('${proId}')) {--%>
        <%--cproId='<%=ZkNode.getIstance().getJsonConfig().get("localProv")+""%>'--%>
        <%--}else{--%>
        cproId = '${proId}';
//        }
        var url = "${ctx}/area/showArea.ac";
        $.ajax({
            url: url,
            data: {
                id:cproId,
                lev: 1
            },
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_pro").chosen("destroy");
                $("<option value=''>请选择</option>").appendTo("#pbrand_pro");
                $(data).each(function (index, value) {
                    $("<option value='" + value.id + "'>" + value.text + "</option>").appendTo("#pbrand_pro");
                });
                $("#pbrand_pro").chosen({
                    no_results_text: "未找到此选项!",
                    width: "100%"
                });
                if ('${proId}' != null && '${proId}' != undefined && '${proId}' != '') {
                    $("#pbrand_pro").val('${proId}');
                    $("#pbrand_pro").trigger("chosen:updated");
                    pbrand_city('${proId}');
                }
            },
            error: function () {
                alert("异常！");
            }
        });
    }

    function loadBizPerson() {
    }


    //发放比例
    function loadFFBL() {
        $("#pbrand_proportion").chosen("destroy");
        var html = '  <option value="">请选择</option>' +
            '<option value="1.0">1:1</option>' +
            '<option value="0.5">2:1</option>' +
            '<option value="0.2">5:1</option>' +
            '  <option value="0.1">10:1</option>';
        $("#pbrand_proportion").html(html);
        $("#pbrand_proportion").chosen({
            no_results_text: "未找到此选项!",
            width: "100%"
        });

        if ('${proportionId}' != null && '${proportionId}' != undefined && '${proportionId}' != '') {
            $("#pbrand_proportion").val('${proportionId}');
            $("#pbrand_proportion").trigger("chosen:updated");
        }
        $("#pbrand_sorts").chosen({
            no_results_text: "未找到此选项!",
            width: "100%"
        });

        $("#pbrand_expiryDateType").chosen("destroy");
        $("#pbrand_zeroGoDateType").chosen("destroy");
        $("#pbrand_experienceDateType").chosen("destroy");
        var htmlExpiryDate = '  <option value="0">请选择</option>' +
            '<option value="1">90天</option>' +
            '<option value="2" selected>1年</option>' +
            '<option value="3">3年</option>';
        $("#pbrand_expiryDateType").html(htmlExpiryDate);
        $("#pbrand_expiryDateType").chosen({
            no_results_text: "未找到此选项!",
            width: "100%"
        });
        $("#pbrand_zeroGoDateType").html(htmlExpiryDate);
        $("#pbrand_zeroGoDateType").chosen({
            no_results_text: "未找到此选项!",
            width: "100%"
        });
        $("#pbrand_experienceDateType").html(htmlExpiryDate);
        $("#pbrand_experienceDateType").chosen({
            no_results_text: "未找到此选项!",
            width: "100%"
        });

        if ('${expiryDateType}' != null && '${expiryDateType}' != undefined && '${expiryDateType}' != 0) {
            $("#pbrand_expiryDateType").val('${expiryDateType}');
            $("#pbrand_expiryDateType").trigger("chosen:updated");
        }
        if ('${zeroGoDateType}' != null && '${zeroGoDateType}' != undefined && '${zeroGoDateType}' != 0) {
            $("#pbrand_zeroGoDateType").val('${zeroGoDateType}');
            $("#pbrand_zeroGoDateType").trigger("chosen:updated");
        }
        if ('${experienceDateType}' != null && '${experienceDateType}' != undefined && '${experienceDateType}' != 0) {
            $("#pbrand_experienceDateType").val('${experienceDateType}');
            $("#pbrand_experienceDateType").trigger("chosen:updated");
        }
    }


    //编辑回写
    function loadForEdit(id) {
        var url = "${ctx}/merchant/getById.ac";
        $.ajax({
            url: url,
            data: {id: id},
            type: 'post',
            cache: false,
            dataType: 'json',
            success: function (data) {
                $("#pbrand_brand_code").val(data.brandCode);//code
                $("#pbrand_name").val(data.name);//名称
                $("#shopPicId").val(data.logoUrl);//logo
                $("#imgUpdate").attr("src", picPath + data.logoUrl);

                //   loadCateGoryFirstChange(data.city);

                $("#pbrand_loginName").val("1");//登录名,回写的时候不显示
                $("#dlzh").hide();
                $("#pbrand_pwd").val("1");//密码,回写的时候不显示
                $("#dlmm").hide();
                $("#pbrand_address").val(data.address);//地址
                $("#pbrand_telephone").val(data.telephone);//联系方式


                // $("#pbrand_introduction").val(container)
                $("#pbrand_dxy_code").val(data.dxyCode);//店小翼code
                $("#pbrand_balance_90").val(data.balance90);//90余额
                $("#pbrand_credit_total_90").val(data.creditTotal90);//久零券透支额度
                $("#pbrand_credit_now_90").val(data.creditNow90);//久零券当前透支额度

                $("#pbrand_balance_90_shop").val(data.balance90_shop);//90余额
                $("#pbrand_credit_total_90_shop").val(data.creditTotal90_shop);//久零券透支额度
                $("#pbrand_credit_now_90_shop").val(data.creditNow90_shop);//久零券当前透支额度

                $("#pbrand_balance_90_experience").val(data.balance90_experience);//90余额
                $("#pbrand_credit_total_90_experience").val(data.creditTotal90_experience);//久零券透支额度
                $("#pbrand_credit_now_90_experience").val(data.creditNow90_experience);//久零券当前透支额度

                $("#pbrand_commission").val(data.commission);//久零佣金百分点
                $("#pbrand_procedures").val(data.procedures);//兴业银行手续费百分点
                $("#pbrand_proportion").val(data.proportion);//发券比例

                $("#pbrand_expiryDateType").val(data.expiryDateType);//久零券有效期
                $("#pbrand_zeroGoDateType").val(data.zeroGoDateType);//0购券有效期
                $("#pbrand_experienceDateType").val(data.experienceDateType);//体验券有效期
                $("#pbrand_sorts").val(data.sorts);//发券优先级
                $("#pbrand_sorts").trigger("chosen:updated");

                $("#pbrand_type").val(data.ticketType);//发券类型
                $("#pbrand_type").trigger("chosen:updated");

                $("#pbrand_coinproportion").val(data.coinproportion);//送贝比例

                if (data.is90 == 1) //是否体验店的
                {
                    $("#pbrand_is_90").prop('checked', true);

                } else {
                    $("#pbrand_is_90").prop('checked', false);
                }

                if (data.isZeroCheck == 1) //是否支持零购卡
                {
                    $("#pbrand_is_zeroCheck").prop('checked', true);

                } else {
                    $("#pbrand_is_zeroCheck").prop('checked', false);
                }

                if (data.isTicket == 1) //是否发劵
                {
                    $("#pbrand_isTicket").prop('checked', true);

                } else {
                    $("#pbrand_isTicket").prop('checked', false);
                }

                if (data.iscoin == 1) //是否送贝
                {
                    $("#pbrand_is_coin").prop('checked', true);

                } else {
                    $("#pbrand_is_coin").prop('checked', false);
                }

                if (data.isPeriodization == 1) //是否分期送券
                {
                    $("#pbrand_is_periodization").prop('checked', true);
                    showOrhideOpetion();
                    var list = eval(data.periodization);
                    $("#period_table tbody").empty();
                    var html_tr = "";
                    var cycleDays = "";
                    $.each(list, function (i) {
                        html_tr += '<tr>'
                            + '<td>' + this.termNum + '</td>'
                            + '<td><input type="number" value="' + parseInt(parseFloat(this.scale) * 100) + '" name="scale" onkeyup= "if( !/^[1-9][0-9]$|^[0-9]$|^0$/.test(this.value)){alert(\'请输入0-100的整数\');this.value=\'\';}" ></td>'
                            + '<td>';
                        if (this.termNum > 6) {
                            html_tr += '<a id="deleteRow" class="edit ml10" href="javascript:void(0);" onClick="deleteRow(this);" title="删除本行">'
                                + '<i class="glyphicon glyphicon-minus"></i>'
                                + '</a>';
                        }
                        html_tr += '</td></tr>';
                        cycleDays = this.cycleDays;
                    });

                    if (list.length < 6) {
                        for (var j = 0; j < 6 - list.length; j++) {
                            html_tr += '<tr>'
                                + '<td>' + parseInt(list.length + j + 1) + '</td>'
                                + '<td><input type="number" value="' + parseInt(parseFloat(this.scale) * 100) + '" name="scale" onkeyup= "if( !/^[1-9][0-9]$|^[0-9]$|^0$/.test(this.value)){alert(\'请输入0-100的整数\');this.value=\'\';}" ></td>'
                                + '<td>';
                        }
                    }
                    $("#period_table tbody").html(html_tr);
                    $("#period_cycleDays").val(cycleDays);

                } else {
                    $("#pbrand_is_periodization").prop('checked', false);
                }

                ue.setContent(data.introduction);//编辑框内容
            },
            error: function () {
                alert("异常！");
            }
        });
    }


    function doSubmit()//提交保存
    {

        var name = $("#pbrand_name").val();//名称
        var logo = $("#shopPicId").val();//logo
        var category_first = $("#pbrand_category_first").val();//所属行业
        var category_second = $("#pbrand_category_second").val();//所属行业
        var speed_code = $("#pbrand_speed_code").val(); //快速分类
        var city = $("#pbrand_city").val();//城市
        var pro = $("#pbrand_pro").val();//省份
        var loginName = $("#pbrand_loginName").val();//登录名
        var pwd = $("#pbrand_pwd").val();//密码
        var address = $("#pbrand_address").val();//地址
        var phone = $("#pbrand_telephone").val();//联系方式

        var container = ue.getContent();//编辑框内容
        $("#pbrand_introduction").val(container);
        var dxy_code = $("#pbrand_dxy_code").val();//店小翼code
        var balance_90 = $("#pbrand_balance_90").val();//90余额
        var credit_total_90 = $("#pbrand_credit_total_90").val();//久零券透支额度

        var credit_now_90 = $("#pbrand_credit_now_90").val();//久零券当前透支额度
        var commission = $("#pbrand_commission").val();//久零佣金百分点
        var procedures = $("#pbrand_procedures").val();//兴业银行手续费百分点
        var biz_code = $("#pbrand_biz_code").val();//业务代表
        var brandtype = $("#pbrand_type").val();//发券类型
        var expireDateType = $("#pbrand_expiryDateType").val();//久零券有效期
        var zeroGoDateType = $("#pbrand_zeroGoDateType").val();//0购券有效期
        var experienceDateType = $("#pbrand_experienceDateType").val();//体验券有效期
        var isZeroCheck = $("#pbrand_is_zeroCheck").val();//

        var isOk = true;
        //先判断是否开启分期发券
        if ($("#pbrand_is_periodization").is(":checked")) {
            var period_termNum = $("#period_cycleDays").val();//发券周期
            if (period_termNum == null || period_termNum == undefined || period_termNum == '') {
                alert("请输入发券周期");
                isOk = false;
            }

            var scale = 0;
            $("input[name='scale']").each(function () {
                scale += parseInt($(this).val());
            });

            if (scale == null || scale == undefined || scale == '' || scale != 100) {
                alert("请填写每一期发券比例,并保证总和为100");
                isOk = false;
            }

        }


        if (name == null || name == undefined || name == '') {
            alert("请输入名称");
            isOk = false;
        }
        // if(logo==null||logo==undefined||logo==''){alert("请上传logo");isOk= false;}
        //if(category_first==null||category_first==undefined||category_first==''||pbrand_category_second==null||pbrand_category_second==undefined||pbrand_category_second==''){alert("请选择所属行业");isOk= false;}
        // if(speed_code==null||speed_code==undefined||speed_code==''){alert("请选择快速分类");isOk= false;}
        if (loginName == null || loginName == undefined || loginName == '') {
            alert("请输入登录名");
            isOk = false;
        }
        // if(pro==null||pro==undefined||pro==''){alert("请选择省");isOk= false;}
        //  if(city==null||city==undefined||city==''){alert("请选择城市");isOk= false;}

        if (pwd == null || pwd == undefined || pwd == '') {
            alert("请输入密码");
            isOk = false;
        }

        if (expireDateType == null || expireDateType == undefined || expireDateType == '' || expireDateType=='0') {
            alert("请选择久零券有效期");
            isOk = false;
        }
        if (zeroGoDateType == null || zeroGoDateType == undefined || zeroGoDateType == '' || zeroGoDateType=='0') {
            alert("请选择0购券有效期");
            isOk = false;
        }
        if (experienceDateType == null || experienceDateType == undefined || experienceDateType == '' || experienceDateType=='0') {
            alert("请选择体验券有效期");
            isOk = false;
        }

//        if (brandtype == null || brandtype == undefined || brandtype == '') {
//            alert("请选择发券类型");
//            isOk = false;
//        }
        //   if(phone==null||phone==undefined||phone==''){alert("请输入联系方式");isOk= false;}
        //   if(address==null||address==undefined||address==''){alert("请输入详细地址");isOk= false;}
        //    if(balance_90==null||balance_90==undefined||balance_90==''){alert("请输入久零券余额");isOk= false;}

        // if(credit_total_90==null||credit_total_90==undefined||credit_total_90==''){alert("请输入透支额度");isOk= false;}
        //   if(credit_now_90==null||credit_now_90==undefined||credit_now_90==''){alert("请输入当前透支额度");isOk= false;}
        // if(commission==null||commission==undefined||commission==''){alert("请输入佣金百分点");isOk= false;}
        // if(procedures==null||procedures==undefined||procedures==''){alert("请输入兴业银行手续费百分点");isOk= false;}
        // if(biz_code==null||biz_code==undefined||biz_code==''){alert("请选择业务代表");isOk= false;}
        console.log($("#form_brand").serialize());
        if (isOk) {

            $.ajax({
                url: '${pageContext.request.contextPath}/merchant/doSave.ac',// 跳转到 action
                data: $("#form_brand").serialize(),
                type: 'post',
                cache: false,
                dataType: 'json',
                success: function (data) {

                    if (data == "success") {
                        alert("操作成功！");

                        parent.layer.close(index);
                    } else {
                        alert(data);
                    }
                },
                error: function () {
                    alert("操作失败！");
                }
            });
        } else {
            return false;
        }
    }


    function uploadFile(obj, id, picId) {//上传图片
        var labid = "";
        //var detailId = $("#detailId").val();
        //$("#"+id).css("background","url(${pageContext.request.contextPath}/resources/assets/images/waiting.gif) no-repeat 0 0/100% 100%");
        $.ajaxFileUpload({
            url: '${pageContext.request.contextPath}/common/doUploadFile.ac',
            secureuri: false,
            type: 'post',
            fileElementId: obj,
            dataType: 'text',
            success: function (data, status) {

                var img = JSON.parse(data);
                $("#" + id).attr("src", picPath + img.path);
                $("#" + picId).val(img.path);

            },
            error: function (data, status, e) {
                alert(e);
            }
        });
    }


    function checkNumber(obj) {
        var reg = /^[0-9]{1,}(?:.[0-9]{0,2})?$/;

        if (!reg.test(obj.value)) {
            alert("请正确输入数字,且保留小数点后2位");
            obj.value = "0.0";
        }
    }


    function showOrhideOpetion() {
        if ($("#pbrand_is_periodization").is(':checked')) {
            $("#period").show();
            $("#periodization_hide").val(1);
        } else {
            $("#period").hide();
            $("#periodization_hide").val(0);
        }
    }



    function addRow() {
        var row_num = $("#period_table tbody tr:last").prevAll().length + 2;
        var tr = '<tr>'
            + '<td>' + row_num + '</td>'
            + '<td><input type="number" name="scale" onkeyup= "if( !/^[1-9][0-9]$|^[0-9]$|^0$/.test(this.value)){alert(\'请输入0-100的整数\');this.value=\'\';}" ></td>'
            + '<td>'
            + '<a id="deleteRow" class="edit ml10" href="javascript:void(0);" onClick="deleteRow(this);" title="删除本行">'
            + '<i class="glyphicon glyphicon-minus"></i>'
            + '</a></td></tr>';
        $("#period_table tbody tr:last").after(tr);
    }

    function deleteRow(obj) {
        $(obj).parent().parent().remove();
        initPeriod();
    }


    //true:是空 false:不为空
    function isNullOrEmpty(strVal) {
        if (strVal == null || strVal == undefined || strVal == '' || strVal == 'undefined' || strVal == 'null' || strVal == 'NULL') {
            return true;
        } else {
            return false;
        }
    }

</script>

</html>

